import request from '@/utils/request'

export default{
  // 添加小节
  addVideo(video){
    return request({
      url: '/eduservice/video/addVideo',
      method: 'post',
      data: video
    })
  },
  // 根据id来删除章节
  deleteVideoById(videoId){
    return request({
      url: `/eduservice/video/${videoId}`,
      method: 'delete'
    })
  },
  // 根据视频id来删除云端视频
  deleteAliyunVideoByVideoId(videoSourceId){
    return request({
      url: `/eduvod/video/${videoSourceId}`,
      method: 'delete'
    })
  } 
}